package com.bookStore.model;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * BookRatings entity. @author MyEclipse Persistence Tools
 */

public class BookRatings implements java.io.Serializable {

	// Fields

	private Integer id;
	private BigDecimal bookId;
	private BigDecimal userId;
	private BigDecimal rating;
	private String comment;
	private Timestamp createdTime;

	// Constructors

	/** default constructor */
	public BookRatings() {
	}

	/** minimal constructor */
	public BookRatings(Integer id, BigDecimal bookId, BigDecimal userId,
			Timestamp createdTime) {
		this.id = id;
		this.bookId = bookId;
		this.userId = userId;
		this.createdTime = createdTime;
	}

	/** full constructor */
	public BookRatings(Integer id, BigDecimal bookId, BigDecimal userId,
			BigDecimal rating, String comment, Timestamp createdTime) {
		this.id = id;
		this.bookId = bookId;
		this.userId = userId;
		this.rating = rating;
		this.comment = comment;
		this.createdTime = createdTime;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public BigDecimal getBookId() {
		return this.bookId;
	}

	public void setBookId(BigDecimal bookId) {
		this.bookId = bookId;
	}

	public BigDecimal getUserId() {
		return this.userId;
	}

	public void setUserId(BigDecimal userId) {
		this.userId = userId;
	}

	public BigDecimal getRating() {
		return this.rating;
	}

	public void setRating(BigDecimal rating) {
		this.rating = rating;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Timestamp getCreatedTime() {
		return this.createdTime;
	}

	public void setCreatedTime(Timestamp createdTime) {
		this.createdTime = createdTime;
	}

}